package com.lvt.design.pattern.create.factory;

/**
 * desc：class
 *
 * @author LT
 * @date 2022/11/30
 */

public class Demo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
                "beans.xml");
        RateLimiter rateLimiter = (RateLimiter) applicationContext.getBean("rateLimiter");
        rateLimiter.test();
        //...
    }
}